package com.edu.control.deploy.retrytask.impl;

import com.edu.control.deploy.retrytask.RetryInterval;

import java.util.Date;

/**
 * 默认延迟5s
 */
public class DefaultRetryInterval implements RetryInterval {

    @Override
    public Date interval(Date date) {
        long time = date.getTime();
        time += 5 * 1000;
        return new Date(time);
    }
}
